How to run/test JavaScript? [closed]

Posted by user702 on Pro Webmasters See other posts from Pro Webmasters or by user702
Published on 2012-12-17T14:31:34Z Indexed on 2012/12/17 17:14 UTC
Read the original article Hit count: 203

Filed under:
|

I'm reading David Flanagan's "JavaScript: The Definitive Guide, 6th ed".

It only actually tells users how to run JS code on page 311, where users are told of the following solutions:

"Client-side JavaScript code is embedded within HTML documents in four ways:

  • Inline, between a pair of <script> and </script> tags
  • From an external file specified by the src attribute in a <script> tag
  • In an HTML event handler attribute, such as onclick or onmouseover
  • In a URL that uses the special javascript: protocol."

I was wondering what professional JS developers use to write and test their code: Do they use a good text editor with syntax high-lighting + autocompletion, hit F5 in the browser to reload the page every time they make a change, and use some add-on in the browser to investigate errors? Or are there full-fledged IDE's similar to MS VisualStudio for non-web languages?

© Pro Webmasters or respective owner

Related posts about JavaScript

Related posts about tools